<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>
<table width="100%">
	<tbody>
		<tr>
			<td><input type="checkbox"/></td>
			<td>编号</td>
			<td>用户名</td>
			<td>电子邮件</td>
			<td>状态</td>
			<td>操作</td>
		</tr>
		<c:if test="${obj != null}">
		<c:forEach items="${obj}" var="user">
			<tr>
				<td><input name="ids" type="checkbox" value="${user.id}"/></td>
				<td>${user.id }</td>
				<td>${user.username}</td>
				<td>${user.email }</td>
				<td>${user.state}</td>
				<td><a href="${contextPath }/admin/user/preupdate.do?userid=${user.id}">编辑</a></td>
			</tr>
		</c:forEach>
		</c:if>
		<c:if test="${obj == null}">
			<tr>
				<td colspan="6" align="center">没有记录</td>
			</tr>
		</c:if>
	</tbody>
</table>